#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
int MyStrlen(char* str)
{
	assert(str);
	if (str == NULL)
	{
		printf("%s\n", "NULL");
		return;
	}
	int count = 0;
	char* p = str;
	while (*p != '\0')
	{
		count++;
		p++;
	}
	return count;
}
int main()
{
	char* str = "abcdef";
	int len = MyStrlen(str);
	printf("%d\n", len);
	return 0;
}